#ifndef _IMAGE_RECALL_TRICK
#define _IMAGE_RECALL_TRICK


#include "ofMain.h"
#include "trick.h"
#include "videoBlobDetector.h"
#include "videoBlob.h"
#include "ofCvMain.h"


class imageRecallTrick : public trick {
	
	public:
		
		void setup();
		void update();
		void draw();
		void keyPressed(int key);
		
		int 	suit;
		int 	card;

		ofTrueTypeFont			font;
		
		ofCvGrayscaleImage		mask;
		
		ofImage				io;
		
		ofImage				cardImage;
		ofImage				maskImage;
		ofTexture			cardWithMask;
		unsigned char	 	* cardWithMaskPixels;
		
		
		bool 				bSave;
		
		bool 				bShow;
		float 				showPct;
		float 				snapShotPct;
		
		
		float 				showPctTarget;
		float 				snapShotPctTarget;
		//snapshot:
		
		bool					bHaveBlobs;
		videoBlob				blob;
		bool 					bTakeSnapshot;
		bool 					bShowSnapshot;
		
		
		
		
				
};

#endif	


